﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/MasterPages/Blank.Master" AutoEventWireup="true" CodeBehind="PrintImg.aspx.cs" Inherits="DMS.Web.Modules.ArchivesManagement.PrintImg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function pagesetup_null() {
        try {
            var RegWsh = new ActiveXObject("WScript.Shell");
            RegWsh.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\header", "");
            RegWsh.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\footer", "");
        } catch (e) {
        }
    }
    
    function doPrint() {
        pagesetup_null();
        window.print();
    }

    $(document).ready(function () {
        doPrint();
        window.close();
    });
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainHolder" runat="server">
<asp:Image runat="server" ID="ImgForPrint"/>
</asp:Content>
